package cn.zyq.ykb.beans.tk;

import cn.zyq.ykb.system.common.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 【请填写功能名称】对象 change
 *
 * @author SystemAuth
 * @date 2023-07-03
 */
@Data
@Entity
@Table(name = "`change`")
public class Change  extends BaseBean implements Serializable {
    /**
     * 主键id，用于关联
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    @Column(name = "`id`")
    @ApiModelProperty("主键id，用于关联")
    private Integer id;
    /**
     * 用户ID
     */
    @Column(name = "`tUserID`")
    @ApiModelProperty("用户ID")
    private Integer tUserID;
    /**
     * 类别
     */
    @Column(name = "`type`")
    @ApiModelProperty("类别")
    private Integer type;
    /**
     * 类型：1收入，2支出
     */
    @Column(name = "`state`")
    @ApiModelProperty("类型：1收入，2支出")
    private Integer state;
    /**
     * 金额
     */
    @Column(name = "`price`")
    @ApiModelProperty("金额")
    private Integer price;
    /**
     * 备注
     */
    @Column(name = "`breaks`")
    @ApiModelProperty("备注")
    private String breaks;
}
